export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  dialogDirection: "rtl",
  searchMenuSpan: 6,
  labelWidth: 100,
  column: [
    {
      type: "select",
      label: "类型",
      prop: "type",
      dicData: [
        {
          label: "入驻企业",
          value: "入驻企业",
        },
        {
          label: "合伙人",
          value: "合伙人",
        },
      ],
      rules: [
        {
          required: true,
          message: "请选择类型",
          trigger: "change",
        },
      ],
      span: 12,
      width: 100,
    },
    {
      label: "图片",
      prop: "img",
      type: "upload",
      action: "/fastfile/upload/szgk-1256675456",
      listType: "picture-img",
      dataType: "string",
      limit: 1,
      propsHttp: {
        res: "data",
        url: "kpath",
      },
      span: 24,
      rules: [
        {
          required: true,
          message: "请选择图片",
          trigger: "change",
        },
      ],
    },
    {
      type: "input",
      label: "名称",
      prop: "name",
      rules: [
        {
          required: true,
          message: "请输入名称",
          trigger: "blur",
        },
      ],
    },
    // {
    //   type: "map",
    //   label: "地址",
    //   prop: "addrs",
    //   slot: true,
    //   params: {
    //     zoom: 14,
    //     center: [window.lng, window.lat],
    //   },
    //   rules: [
    //     {
    //       required: true,
    //       message: "请选择地址",
    //       trigger: "blur",
    //     },
    //   ],
    // },
    // {
    //   type: "select",
    //   label: "标签",
    //   prop: "tag",
    //   multiple: true,
    //   dicUrl: "/bi/bicompany/tags",
    // },
    {
      type: "input",
      label: "企业类型",
      prop: "description",
      rules: [
        {
          required: true,
          message: "请输入企业类型",
          trigger: "blur",
        },
      ],
    },
    {
      type: "input",
      label: "主导产业",
      prop: "remark",
      rules: [
        {
          required: true,
          message: "请输入主导产业",
          trigger: "blur",
        },
      ],
    },
    {
      type: "input",
      label: "内容",
      prop: "enabled",
      component: "avueUeditor",
      slot: true,
      span: 24,
      width: 70,
      hide: true,
    },
  ],
};
